package com.dr.cmdb.core.annotation;

import java.lang.annotation.*;

/**
 * @ProjectName: cmdb
 * @Package: com.dr.cmdb.application.annotation
 * @Description: java类作用描述
 * @Author: duanrui
 * @CreateDate: 2021/4/17 21:31
 * @Version: 1.0
 * <p>
 * Copyright: Copyright (c) 2021
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public  @interface RedisLock {

    String lockKey();

    /**
     * 默认毫秒
     * @return
     */
    int expire() default 15000;

    /**
     * 默认给前端的提示
     * @return
     */
    String errorMsg() default "请稍后重试";
}
